import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"
import  vueResource from "vue-resource";
Vue.use(VueRouter)
Vue.use(vueResource)
import index from './component/user/index.vue';
import glogin from  "./component/manager/login.vue";
import content from "./component/manager/content.vue";
import income from "./component/manager/income.vue";
import userList from "./component/manager/userList.vue";
import expertList from "./component/manager/expertList.vue";
import  orderList from "./component/manager/orderList.vue";
import  expertyAudit from "./component/manager/expertAudit.vue";
import tags from "./component/manager/tags.vue";
import expert from "./component/user/user/expert.vue";
import expertDetail from "./component/user/user/expertDetail.vue"
import join from "./component/user/user/join.vue";
import myAsk from "./component/user/user/myAsk.vue";
import myInfo from "./component/user/user/myInfo.vue";
import  bill from "./component/user/expert/bill.vue";
import commentList from "./component/user/expert/commentList.vue";
import my from "./component/user/expert/my.vue";
import myAnswer from "./component/user/expert/myAnswer.vue";
import getMoney from "./component/user/getMoney.vue";
import Recharge from "./component/user/recharge.vue"
import Mood from  "./component/user/shareMood.vue"

var router=[
  {path:"/",component:index},
  {path:'/index',component:index},
  {path:'/login',component:glogin} ,
  {path:'/manager',
    component:content,
    children:[
      {path:'userList',component:userList},
      {path:'orderList',component:orderList},
      {path:'Audit',component:expertyAudit},
      {path:'expertList',component:expertList},
      {path:'income',component:income},
      {path:"tags",component:tags},
    ]
  },
  {
    path:'/user',
    component:Mood,
    children:[
      {path:"expert",component:expert},
      {path:"expertDetail",component:expertDetail},
      {path:"join",component:join},
      {path:"myAsk",component:myAsk},
      {path:"myInfo",component:myInfo},
      {path:"recharge",component:Recharge},
    ]
  },
  {
    path:'/expert',
    component:Mood,
    children:[
      {path:"comment",component:commentList},
      {path:"my",component:my},
      {path:"myAnswer",component:myAnswer},
      {path:"myAsk",component:myAsk},
      {path:"bill",component:bill},
      {path:"recharge",component:Recharge},
    ]
  },


];
var routers=new VueRouter({
  routes:router
})

new Vue({
  el:"#app",
  router:routers,
  render:h=>h(App)
})


